<?xml version="1.0" ?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
	version="1.0">
	
	<xsl:template match="/canss">
		<html>
			<body>
				<h1>
					Event Description List
				</h1>
				<xsl:template match="canssEvent_eventGroup">
					<table class="datatable">
						<tbody>
							<th scope='col'>번호</th>
							<th scope='col'>Event ID</th>
							<th scope='col'>Event level</th>
							<th scope='col'>Event name</th>
							<th scope='col'>One Line Description</th>
							<th scope='col'>Event 관리</th>
						
							<xsl:for-each select="/canss/canssEvent_eventGroup/canssEvent_eventDescription">
								<tr>
									<td scope='col'>
										<center><xsl:number format="1"/></center>
									</td>
									<td>
										<xsl:value-of select="canssEvent_EventID"/>
									</td>
									<td class="singleentry">
										<xsl:value-of select="canssEvent_Level"/>
									</td>
									<td>
										<xsl:value-of select="canssEvent_EventName"/>
									</td>
									<td>
										<xsl:value-of select="canssEvent_OneLineDesc"/>
									</td>
									<td class="singleentry">
										<form method="post" action="svtAjaxEditEventDesc">
											<xsl:variable name="eventid"><xsl:value-of select="canssEvent_EventID"/></xsl:variable>
											<input type="hidden" name="_eventid" value="{$eventid}"/>
											<input type="submit" value="삭제" onclick=""/>
											
											<input type="hidden" name="_methodname" value="remove"/>
											<input type="hidden" name="_rurl" value="mainframe.jsp?_pagenum=6"/>
										</form>
									</td>
								</tr>
							</xsl:for-each>
							
							<tr>
								<td>-</td>
								<form method="post" action="svtAjaxEditEventDesc">
									<td><input type="text" name="_eventid" style="width:50px;"/></td>
									<td><select name="_level">
										<option value="0">0: 정보</option>
										<option value="1">1: 통지</option>
										<option value="2">2: 경고</option>
										<option value="3">3: 오류 (lowest)</option>
										<option value="4">4: 오류 (low)</option>
										<option value="5">5: 오류 (normal)</option>
										<option value="6">6: 오류 (high)</option>
										<option value="7">7: 오류 (highest)</option>
										<option value="8">8: 중대</option>
										<option value="9">9: 경보</option>
										<option value="10">10: 긴급</option>
									</select></td>
									<td><input type="text" name="_eventname" style="width:100%"/></td>
									<td><input type="text" name="_oneLineDesc" style="width:100%"/></td>
									<td class="singleentry">
										<input type="hidden" name="_methodname" value="add"/>
										<input type="hidden" name="_rurl" value="mainframe.jsp?_pagenum=6"/>
										<input type="submit" value="추가" onclick=""/>
									</td>
								</form>
							</tr>
						</tbody>
					</table>
				</xsl:template>
			</body>
		</html>
	</xsl:template>
</xsl:stylesheet>

